package com.talos.ums.controller.admin.warehouseuser.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - 用户仓库关系表新增/修改 Request VO")
@Data
public class UmsWarehouseUserSaveReqVO {

    @Schema(description = "用户-仓库-中间表主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "10670")
    private Long id;

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "7883")
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @Schema(description = "仓库id bdms_base_warehourse.id", requiredMode = Schema.RequiredMode.REQUIRED, example = "12446")
    @NotNull(message = "仓库id bdms_base_warehourse.id不能为空")
    private Long warehouseId;

    @Schema(description = "仓库编码")
    private String warehouseCode;

    @Schema(description = "用户编码")
    private String userCode;

    @Schema(description = "仓库权限管理员: 0-否, 1-是")
    private Integer adminPermission;

    @Schema(description = "是否有效：0-无效，1-有效")
    private Integer activeFlag;

}
